<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input class="hidden" id="c-initiator_id"  name="row[initiator_id]"  value="{$initiator_id}">
    <div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('甲方')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-originator" class="form-control" name="row[originator]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('乙方')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-partner" class="form-control" name="row[partner]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('牵头部门')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-department_id" data-rule="required" data-source="department/index/selectpage" class="form-control selectpage" name="row[department_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('主要参与部门')}:</label>
        <div class="col-xs-12 col-sm-7">
            <select name="row[participating_departments][]" id="c-participating_departments" data-rule="" class="form-control selectpicker" multiple="">
                {foreach name='departmentList' key='key' item='vo'}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('cname')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-cname" class="form-control" name="row[cname]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-7">
           <select class="form-control"  name="row[type]" id='c-type'>
                    {foreach name="typeList" item="vo"}
               <option value="{$key}">{$vo}</option>
           {/foreach}
          </select> 
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Startdate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7">-->
<!--            <input id="c-startdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[startdate]" type="text" value="{:date('Y-m-d')}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Enddate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7">-->
<!--            <input id="c-enddate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[enddate]" type="text" value="{:date('Y-m-d')}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Contacts')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-contacts" class="form-control" name="row[contacts]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Counterpart')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-counterpart" class="form-control" name="row[counterpart]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Counterpart_mobile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-counterpart_mobile" class="form-control" name="row[counterpart_mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Agreementfile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input id="c-agreementfile" class="form-control" size="50" name="row[agreementfile]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-agreementfile" class="btn btn-danger faupload" data-input-id="c-agreementfile" data-multiple="false" data-preview-id="p-agreementfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-agreementfile" class="btn btn-primary fachoose" data-input-id="c-agreementfile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-agreementfile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-agreementfile"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-7">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
